using System;
using System.ComponentModel;

namespace QLTB.BusinessObjects
{
    /// <summary>
    /// Project: NNS System 
    /// Generated Class for Table : TBL_quyen.
    /// Date: 06/03/2010
    /// Author: Trần Hoàng Tâm
    /// </summary>
    public class TBL_quyen : Object
    {
        #region Init

        private int m_id;
        private int m_idnhom;
        private string m_menu;
        private bool m_taomoi;
        private bool m_tatca;
        private bool m_thaydoi;
        private bool m_xem;


        public TBL_quyen()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public TBL_quyen(
            int id,
            int idnhom,
            string menu,
            bool xem,
            bool thaydoi,
            bool taomoi,
            bool tatca)
        {
            //
            // TODO: Add constructor logic here
            //
            SetData
                (
                    id,
                    idnhom,
                    menu,
                    xem,
                    thaydoi,
                    taomoi,
                    tatca
                );
        }


        public void SetData(
            int id,
            int idnhom,
            string menu,
            bool xem,
            bool thaydoi,
            bool taomoi,
            bool tatca)
        {
            //
            // TODO: Add constructor logic here
            //
            m_id = id;
            m_idnhom = idnhom;
            m_menu = menu;
            m_xem = xem;
            m_thaydoi = thaydoi;
            m_taomoi = taomoi;
            m_tatca = tatca;
        }

        #endregion

        #region Property

        [DisplayName("id")]
        [Category("Primary Key")]
        public int id
        {
            get { return m_id; }
            set { m_id = value; }
        }

        [DisplayName("idnhom")]
        [Category("Column")]
        public int idnhom
        {
            get { return m_idnhom; }
            set { m_idnhom = value; }
        }

        [DisplayName("menu")]
        [Category("Column")]
        public string menu
        {
            get { return m_menu; }
            set { m_menu = value; }
        }

        [DisplayName("xem")]
        [Category("Column")]
        public bool xem
        {
            get { return m_xem; }
            set { m_xem = value; }
        }

        [DisplayName("thaydoi")]
        [Category("Column")]
        public bool thaydoi
        {
            get { return m_thaydoi; }
            set { m_thaydoi = value; }
        }

        [DisplayName("taomoi")]
        [Category("Column")]
        public bool taomoi
        {
            get { return m_taomoi; }
            set { m_taomoi = value; }
        }

        [DisplayName("tatca")]
        [Category("Column")]
        public bool tatca
        {
            get { return m_tatca; }
            set { m_tatca = value; }
        }

        #endregion
    }
}